#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main() {
	int ret = 0;
	char s1[] = "abc,;!/}defgh,,,**#123,456";
	char s2[] = ";,/#}*abc,;!/}defgh,,,**#123,456";
	char delim[] = ",;!/}#*";

	ret = strspn(s1, delim);
	printf("ret1:%d\n", ret);

	ret = strspn(s2, delim);
	printf("ret2:%d\n", ret);

	return 0;
}
